home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / protocol / mstd_173.doc < prev    next >
Text File  |  1991-07-10  |  61KB  |  2,201 lines

  1. [ PROTOCOLS:MSTD-1780-TESTS.DOC ]                              [ 4/88 ]
  2.  
  3.                     DCEC PROTOCOL LABORATORY
  4.                   FILE TRANSFER PROTOCOL (FTP)
  5.                           MIL-STD-1780
  6.                    CERTIFICATION TESTS INDEX
  7.  
  8. This Certification Tests Index provides information on the
  9. derivation, organization, and function of tests specified for FTP
  10. within the DCEC Protocol Laboratory.
  11.  
  12. This document is divided into five sections:
  13.  
  14.      FTP TRACEABILITY INDEX;
  15.      FTP TESTS INDEX;
  16.      FTP CODES INDEX;
  17.      FTP TEST SCENARIOS INDEX;
  18.      and FTP SCENARIOS AND TESTS DESCRIPTIONS.
  19.  
  20.                             --------
  21.  
  22. FTP TRACEABILITY INDEX: FTP TEST NUMBERS versus FTP MIL-STD-1780
  23. References...
  24.  
  25. The table shows, for MIL-STD-1780, the FTP Test Numbers which may
  26. be regarded as the "principal tests" of each required function,
  27. operation, option, mode, response, or state.
  28.  
  29.                             --------
  30.  
  31. FTP TESTS INDEX: FTP TEST NUMBERS versus FTP Commands/
  32. Primitives/Options/Modes...
  33.  
  34. The table shows the FTP Test Numbers which may be regarded as the "principal
  35. tests" of each FTP Command or Primitive and/or Option or Mode.
  36.  
  37.                             --------
  38.  
  39. FTP CODES INDEX: FTP TEST NUMBERS versus FTP Response Codes...
  40.  
  41. The table shows the FTP Test Numbers which may be regarded as the
  42. "principal tests" of each FTP Response (or State, etc.) Code to/
  43. for/of the indicated FTP Commands or Primitives.
  44.  
  45.                             --------
  46.  
  47. FTP TEST SCENARIOS INDEX: FTP TEST SCENARIO FILES versus FTP
  48. TEST NUMBERS...
  49.  
  50. The table shows, for each FTP Test Number, the UNIX filenames of
  51. the FTP test Scenario Files in which it may be regarded as a
  52. "principal test objective".
  53.  
  54.                             --------
  55.  
  56. FTP SCENARIOS AND TESTS DESCRIPTIONS...
  57.  
  58. This section provides a brief narrative of the scope and
  59. objectives of each FTP test Scenario File and a narrative or
  60. graphic operational description of each FTP Test Number.
  61.  
  62.                             FTP -1-
  63.               FTP TRACEABILITY INDEX
  64.  
  65. FTP TEST NUMBERS
  66.     versus
  67.         FTP MIL-STD-1780 References
  68.  
  69. The following table shows, for MIL-STD-????, the FTP Test Numbers
  70. which may be regarded as the "principal tests" of each required
  71. function, operation, option, mode, response, or state.  Test
  72. Numbers not indicated here may be used to establish necessary
  73. predecessor conditions for these tests.
  74.  
  75. Reference                                                  Test Number
  76. ---------                                                  --------------------
  77.  
  78. 5.7.1.1.1                                                  1, 60, 117
  79. 5.7.1.1.2                                                  1, 61, 117
  80. 5.7.1.1.3                                                  1, 62, 117
  81. 5.7.1.1.4                                                  3, 63, 108
  82. 5.7.1.1.5                                                  2, 64
  83. 5.7.2.1                                                    32, 65
  84. 5.7.2.2                                                    31, 65, 116
  85. 5.7.2.3, 5.7.2.4, 5.7.2.5                                  18, 19, 20, 50, 51,
  86.                                                            52, 53, 54, 55, 112,
  87.                                                            113, 114
  88. 5.7.3.1, 5.7.3.2                                           9, 66, 115
  89. 5.7.3.3                                                    24, 67, 118
  90. 5.7.3.4                                                    10, 68
  91. 5.7.3.6                                                    25, 69, 107
  92. 5.7.3.7                                                    26, 70, 107
  93. 5.7.3.8                                                    4, 71, 105
  94. 5.7.3.10                                                   20, 72, 102
  95. 5.7.3.11                                                   21, 73, 106
  96. 5.7.3.12                                                   22, 74, 110
  97. 5.7.3.13                                                   23, 75, 111
  98. 5.7.3.14                                                   7, 76, 101
  99. 5.7.3.15                                                   6, 77 104
  100. 5.7.3.16                                                   5, 78, 103
  101. 5.7.3.17                                                   8, 79, 200
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.                             FTP -2-
  120.                              FTP TESTS INDEX
  121.  
  122. FTP TEST NUMBERS
  123.     versus
  124.     FTP Commands/Primitives/Options/Modes
  125.  
  126. The following table shows the FTP test numbers which may be
  127. regarded as the "principal tests" of each FTP command or
  128. primitive and/or option or mode.  Test numbers not indicated here
  129. may be used to establish necessary predecessor conditions for
  130. these tests.
  131.  
  132. Command or Primitive     Option or Mode     Test Number
  133. --------------------     --------------     --------------------
  134.  
  135. USER                                        1
  136. PASS                                        1
  137. ACCT                                        1
  138. REIN                                        3
  139. QUIT                                        2
  140. PORT                                        32
  141. PASV                                        31
  142. RETR                                        9
  143. STOR                                        9
  144. MODE                     BLOCK              18
  145. MODE                     COMPRESSED         19
  146. MODE                     STREAM             20
  147. TYPE                     ASCII              18, 19, 20
  148. TYPE                     EBCDIC             18, 19, 20
  149. TYPE                     IMAGE              18, 19, 20
  150. STRU                     FILE               18, 19, 20
  151. STRU                     RECORD             18, 19, 20
  152. APPE                                        24
  153. ALLO                                        10
  154. RNFR                                        25
  155. RNTO                                        26
  156. ABOR                                        4
  157. DELE                                        20
  158. CWD                                         21
  159. LIST                                        22
  160. NLST                                        23
  161. SITE                                        7
  162. STAT                                        6
  163. HELP                                        5
  164. NOOP                                        8
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                             FTP -3-
  178.                        FTP CODES INDEX
  179.  
  180. FTP Test Numbers
  181.     versus
  182.     FTP Response Codes
  183.  
  184. The following table shows the FTP test numbers which may be
  185. regarded as the "principal tests" of each FTP response (or state,
  186. etc.) code to/for/of the indicated FTP commands or primitives.
  187. Test numbers not indicated here may be used to establish
  188. necessary predecessor conditions for these tests.
  189.  
  190. Response Code       Command or Primitive       Test Number
  191. -------------       --------------------       -----------
  192.  
  193. 120                 REIN                       63
  194. (125/150)6(226/250) RETR, STOR, APPE, LIST, NLST
  195.                                                66, 67, 74, 75
  196. 200                 PORT                       65
  197.                     ALLO                       68
  198.                     RNTO                       70
  199.                     DELE                       72
  200.                     CWD                        73
  201.                     SITE                       76
  202.                     NOOP                       79
  203.                     TYPE, STRU, MODE           50, 51, 52, 53, 54, 55
  204. 202                 SITE                       101
  205. 211                 STAT                       77
  206.                     HELP                       78
  207. 212                 STAT                       77
  208. 213                 STAT                       77
  209. 214                 HELP                       78
  210. 220                 REIN                       63
  211. 221                 QUIT                       64
  212. 225                 ABOR                       71
  213. 226                 ABOR                       71
  214. 227                 PASV                       65
  215. 230                 USER                       60
  216.                     PASS                       61
  217.                     ACCT                       62
  218. 250                 RNTO                       70
  219.                     DELE                       72
  220.                     CWD                        73
  221. 331                 USER                       60
  222. 332                 PASS                       61
  223. 350                 RNFR                       69
  224. 425                 RETR                       120
  225.                     STOR                       120
  226.                     APPE                       118
  227.                     LIST                       110
  228.                     NLST                       111
  229. 450                 RNFR                       107
  230.  
  231.  
  232.  
  233.  
  234.  
  235.                             FTP -4-
  236.  
  237. 500                 NOOP                       200
  238.                     NLST                       111
  239. 501                 LIST                       110
  240.                     NLST                       111
  241. 502                 REIN                       108
  242.                     PASV                       116
  243.                     ABOR                       105
  244.                     STAT                       104
  245.                     SITE                       101
  246. 503                 PASS                       117
  247.                     ACCT                       117
  248.                     RNTO                       107
  249. 504                 HELP                       103
  250.                     TYPE, MODE, STRU           112, 113, 114
  251.                     SITE                       101
  252. 530                 USER                       117
  253.                     PASS                       117
  254.                     ACCT                       117
  255.                     STOR                       201
  256. 550                 RETR                       115
  257.                     APPE                       118
  258.                     RNFR                       107
  259.                     DELE                       102
  260.                     CWD                        106
  261.                     LIST                       110
  262.                     NLST                       111
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.                             FTP -5-
  293.                      FTP TEST SCENARIOS INDEX
  294.  
  295. FTP TEST SCENARIO FILES
  296.     versus
  297.     FTP TEST NUMBERS
  298.  
  299. Within the PROTOLAB VAX-11/750 Test Master System, all FTP test
  300. Scenario Files may be found in the following UNIX directory:
  301.  
  302.      /usr/users/TSL/test/scripts/ftp.
  303.  
  304. The following table shows, for each FTP Test Number, the UNIX
  305. filenames of the FTP test Scenario Files in which it may be
  306. regarded as a "principal test objective".  A Test Number may be
  307. used, to establish necessary predecessor conditions for other
  308. Test Numbers, in Scenario Files not indicated here.
  309.  
  310. Test Number               Scenario File
  311. --------------------      --------------------------------------------------
  312.  
  313.                           u_logquit
  314. 1
  315. 2
  316. 9                         u_basic
  317. 18
  318. 19
  319. 20
  320. 24                        u_fileserv
  321. 10
  322. 25
  323. 26
  324. 22
  325. 23
  326. 21
  327. 20
  328. 3                         u_connserv
  329. 4
  330. 31                        u_conn3
  331. 32
  332. 60                        s_logquit
  333. 61
  334. 62
  335. 64
  336. 66                        s_basic
  337. 50
  338. 51
  339. 52
  340. 53
  341. 54
  342. 55
  343. 79
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.                             FTP -6-
  351. 67                        g_fileserv
  352. 68
  353. 69
  354. 70
  355. 74
  356. 75
  357. 73
  358. 72
  359. 63                        s_connserv
  360. 71
  361. 77
  362. 76
  363. 78                        s_connserv
  364. 65                        s_conn3
  365. 200                       n_generr
  366. 201                       n_notlog
  367. 117
  368. 120                       n_basic
  369. 114
  370. 112
  371. 113
  372. 118
  373. 107                       n_fileserv
  374. 110
  375. 111
  376. 106
  377. 102
  378. 108                       n_connserv
  379. 105
  380. 104
  381. 101
  382. 103
  383. 116                       n_conn3
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.                             FTP -7-
  409.           FTP SCENARIOS AND TESTS DESCRIPTIONS
  410.  
  411. The following scenario files test the ability of the User FTP
  412. Implementation Under Test to issue commands according to the
  413. MIL-STD specification.
  414.  
  415. Scenario File u_logquit:
  416.           - Establish FTP Command Connection.
  417.           - Login Sequence.
  418.           - Close Command Connection.
  419.  
  420. Test 1  Establish Connection
  421.         Issue USER, PASS, and ACCT Commands
  422.  
  423. Test 2  Issue QUIT Command
  424.  
  425. -------------------------------------------------------
  426.  
  427. Test 1
  428.  
  429.        - Can the implementation under test (IUT) establish
  430.          a connection to the reference (REF)?
  431.  
  432.        - Can the IUT issue correct command formats for the
  433.          USER, PASS, and ACCT commands?
  434.  
  435.     Establish Connection
  436.  
  437.        - Action: Instruct the IUT to open a connection to the
  438.          REF: If successful, issue login sequence, else abort the
  439.          scenario.
  440.  
  441.        - Verification: IUT receives a correct response from REF
  442.          indicating that a connection is established.
  443.  
  444.        Success: Positive response received by IUT.  Connection
  445.        opened.
  446.  
  447.        Failure: Negative response received.  No connection
  448.        available.  Abort Scenario.
  449.  
  450. Login Sequence
  451.  
  452.        - Action: Instruct the IUT to issue the USER command.  If
  453.          the USER command is successful, the IUT is instructed to
  454.          issue the PASS command.  If the PASS command is
  455.          successful, the IUT is instructed to issue the ACCT
  456.          command.
  457.  
  458.        - Verification: REF compares char string received from
  459.          IUT to the correct command format as specified by
  460.          MIL-STD-1780.
  461.  
  462.        Success: REF receives correct command format for each the
  463.        USER, PASS, and ACCT commands within the specified time
  464.        interval for each command.
  465.  
  466.  
  467.                             FTP -8-
  468.        Failure: If either an incorrect command is received or
  469.        timeout occurs for any command, failure is logged and the
  470.        test exited.
  471.  
  472. Test 2
  473.  
  474.        - Can a connection between the IUT and REF be closed by
  475.          issuing a QUIT command?
  476.  
  477.        - Action: The IUT is instructed to send the QUIT command.
  478.  
  479.        The REF waits 30 seconds to receive the command before
  480.        timing-out.
  481.  
  482.        - Verification: REF receives character string and
  483.          compares it to the MIL-STD specification for QUIT command.
  484.  
  485.        Success: IUT sent correct command format.  Connection is
  486.        closed.
  487.  
  488.        Failure: REF times-out before receiving the correct
  489.        command format.  Test is completed and connection is
  490.        closed.
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                             FTP -9-
  526. Scenario File u_basic:
  527.           - Issue Transfer Commands.
  528.           - Test for correct file transfer.
  529.           - Issue and test all possible combinations of the File
  530.             Transfer Parameters.
  531.  
  532. Test 9  Issue RETR and STOR commands
  533.  
  534. ????A
  535. ????B
  536.  
  537.          Transfer a file and compare byte-by-byte for alteration of data
  538.  
  539. Test 18, 19, 20   Issue all combinations of TYPE, MODE, and STRU
  540.                   transfer parameters.
  541.                   For each combination, transfer a file and
  542.                   compare byte-by-byte for alteration of data
  543.  
  544. Test 8   Issue NOOP Command
  545.  
  546. --------------------------------------------------------------------------
  547.  
  548. Test 9
  549.  
  550.        - Can the IUT issue correct command formats for the RETR
  551.          and STOR commands?
  552.  
  553.        - Can the IUT correctly transfer a file under the default
  554.          transfer parameters?
  555.  
  556.        - Action: Instruct IUT to issue the RETR command so that
  557.          a test file is transferred from the REF to IUT.  If REF
  558.          receives correct command format within 30 seconds, ensure
  559.          file transfer is complete by checking response code.  When
  560.          file transfer has completed, instruct IUT to issue the
  561.          STOR command so that the test file is transferred back to
  562.          the REF.  If REF receives correct command format within 30
  563.          seconds, ensure file transfer is complete by checking
  564.          response code.  When file transfer has completed compare
  565.          the original REF test file to the file just received by IUT.
  566.  
  567.        - Verification: Check the command format for MIL-STD
  568.          conformance.  Compare file to ensure that the file data
  569.          was not destroyed or altered while being transferred to
  570.          and from the IUT.
  571.  
  572.        Success: REF receives correct command format for RETR and
  573.          STOR commands.  Successful file comparison to ensure
  574.          correct file transfer.
  575.  
  576.        Failure: Timeout occurs before receiving correct command
  577.          format for either RETR or STOR commands or unsuccessful
  578.          comparison of transferred files.
  579.  
  580.  
  581.  
  582.                             FTP -10-
  583. Tests 18, 19, 20
  584.  
  585.        - Can the IUT issue all the possible values for the
  586.          transfer parameter commands?
  587.  
  588.        - Can the IUT transfer a file using all the different
  589.          combinations of the transfer parameters?
  590.  
  591.        - Action: These tests cover each possible combination of
  592.          the transfer parameters.  After each combination, there is
  593.          a test for command format.  If that test is successful, a
  594.          file is transferred from the IUT to the REF and compared
  595.          to the original file on the REF.
  596.  
  597.        - Verification: Check the MIL-STD for command format
  598.          conformance.  Compare file to ensure correct data and file
  599.          representation.
  600.  
  601.        Success: For each test, a correct command format is
  602.          received by REF and file comparison is successful.
  603.  
  604.        Failure: For each test, if a timeout occurs before
  605.          receiving correct command format or an unsuccessful file
  606.          comparison.
  607.  
  608. Test 8
  609.  
  610.        - Can the IUT issue the correct command format for the
  611.          NOOP command?
  612.  
  613.        - Action: Instruct IUT to issue the NOOP command.  REF
  614.          waits 30 seconds to receive correct command format from
  615.          IUT.
  616.  
  617.        - Verification: REF checks that string received conforms
  618.          to MIL-STD specifications.
  619.  
  620.        Success: REF receives correct command format within 30
  621.          seconds.
  622.  
  623.        Failure: REF timed-out before receiving correct command
  624.          format from the IUT.
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.                             FTP -11-
  640. Scenario File u_fileserv: Test command formats for the following
  641.           functions:
  642.           - Append.
  643.           - Allocate.
  644.           - Rename file.
  645.           - List files.
  646.           - List files by name.
  647.           - Change working directory.
  648.           - Delete.
  649.  
  650. Test 24:  Issue APPE Command
  651. Test 10:  Issue ALLO Command
  652. Test 25:  Issue RNFR Command
  653. Test 26:  Issue RNTO Command
  654. Test 22:  Issue LIST Command
  655. Test 23:  Issue NLST Command
  656. Test 21:  Issue CWD Command
  657. Test 20:  Issue DELE Command
  658.  
  659.  
  660. -----------------------------------------------------------------
  661.  
  662. Test 24
  663.  
  664.        - Can the IUT issue an APPE command?
  665.  
  666.        - Action: IUT is instructed to issue an APPE command.
  667.  
  668.        - Verification: REF receives char string within 30 second
  669.          time interval and checks it for MIL-STD specification.
  670.  
  671.        Success: IUT sends correct command format.
  672.  
  673.        Failure: REF does not receive correct command format
  674.          within 30 seconds.
  675.  
  676.  
  677. Test 10
  678.  
  679.        - Can the IUT issue an ALLO command?
  680.  
  681.        - Action: IUT is instructed to issue an ALLO command.
  682.  
  683.        - Verification: REF receives char string within 30 second
  684.            time interval and checks it for MIL-STD specification.
  685.  
  686.        Success: IUT sends correct command format.
  687.  
  688.        Failure: REF does not receive correct command format
  689.          within 30 seconds.
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.                             FTP -12-
  697. Test 25
  698.  
  699.        - Can the IUT issue a RNFR command?
  700.  
  701.        - Action: IUT is instructed to issue a RNFR command.
  702.  
  703.        - Verification: REF receives char string within 30 second
  704.            time interval and checks it for MIL-STD specification.
  705.  
  706.        Success: IUT sends correct command format.
  707.  
  708.        Failure: REF does not receive correct command format
  709.          within 30 seconds.
  710.  
  711.  
  712. Test 26
  713.  
  714.        - Can the IUT issue a RNTO command?
  715.  
  716.        - Action: IUT is instructed to issue a RNTO command.
  717.  
  718.        - Verification: REF receives char string within 30 second
  719.            time interval and checks it for MIL-STD specification.
  720.  
  721.        Success: IUT sends correct command format.
  722.  
  723.        Failure: REF does not receive correct command format
  724.          within 30 seconds.
  725.  
  726.  
  727. Test 22
  728.  
  729.        - Can the IUT issue a LIST command?
  730.  
  731.        - Action: IUT is instructed to issue a LIST command.
  732.  
  733.        - Verification: REF receives char string within 30 second
  734.            time interval and checks it for MIL-STD specification.
  735.  
  736.        Success: IUT sends correct command format.
  737.  
  738.        Failure: REF does not receive correct command format
  739.          within 30 seconds.
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.                             FTP -13-
  755. Test 23
  756.  
  757.        - Can the IUT issue a NLST command?
  758.  
  759.        - Action: IUT is instructed to issue a NLST command.
  760.  
  761.        - Verification: REF receives char string within 30 second
  762.          time interval and checks it for MIL-STD specification.
  763.  
  764.        Success: IUT sends correct command format.
  765.  
  766.        Failure: REF does not receive correct command format
  767.          within 30 seconds.
  768.  
  769.  
  770. Test 21
  771.  
  772.        - Can the IUT issue a CWD command?
  773.  
  774.        - Action: IUT is instructed to issue a CWD command.
  775.  
  776.        - Verification: REF receives char string within 30 second
  777.            time interval and checks it for MIL-STD specification.
  778.  
  779.        Success: IUT sends correct command format.
  780.  
  781.        Failure: REF does not receive correct command format
  782.          within 30 seconds.
  783.  
  784.  
  785. Test 20
  786.  
  787.        - Can the IUT issue a DELE command?
  788.  
  789.        - Action: IUT is instructed to issue a DELE command.
  790.  
  791.        - Verification: REF receives char string within 30 second
  792.            time interval end checks it for MIL-STD specification.
  793.  
  794.        Success: IUT sends correct command format.
  795.  
  796.        Failure: REF does not receive correct command format
  797.          within 30 seconds.
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.                             FTP -14-
  812. Scenario File u_connserv: Test command formats for the following
  813.           functions:
  814.            - Reinitialize connection.
  815.            - Abort connection.
  816.            - Status connection.
  817.            - Site command.
  818.            - Remote help information.
  819.  
  820. Test 3  Issue REIN command
  821. Test 4  Issue ABOR command
  822. Test 6  Issue STAT command
  823. Test 7  Issue SITE command
  824. Test 5  Issue HELP command
  825.  
  826. -------------------------------------------------------------
  827.  
  828. Test 3
  829.  
  830.        - Can the IUT issue a REIN command?
  831.  
  832.        - Action: IUT is instructed to issue a REIN command.
  833.  
  834.        - Verification: REF receives char string within 30 second
  835.            time interval and checks it for MIL-STD specification.
  836.  
  837.        Success: IUT sends correct command format.
  838.  
  839.        Failure: REF does not receive correct command format
  840.          within 30 seconds.
  841.  
  842.  
  843. Test 4
  844.  
  845.        - Can the IUT issue a ABOR command?
  846.  
  847.        - Action: IUT is instructed to issue a ABOR command.
  848.  
  849.        - Verification: REF receives char string within 30 second
  850.            time interval and checks it for MIL-STD specification.
  851.  
  852.        Success: IUT sends correct command format.
  853.  
  854.        Failure: REF does not receive correct command format
  855.          within 30 seconds.
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.                             FTP -15-
  869. Test 6
  870.  
  871.        - Can the IUT issue a STAT command?
  872.  
  873.        - Action: IUT is instructed to issue a STAT command.
  874.  
  875.        - Verification: REF receives char string within 30 second
  876.            time interval and checks it for MIL-STD specification.
  877.  
  878.        Success: IUT sends correct command format.
  879.  
  880.        Failure: REF does not receive correct command format
  881.          within 30 seconds.
  882.  
  883.  
  884. Test 7
  885.  
  886.        - Can the IUT issue a SITE command?
  887.  
  888.        - Action: IUT is instructed to issue a SITE command.
  889.  
  890.        - Verification: REF receives char string within 30 second
  891.            time interval and checks it for MIL-STD specification.
  892.  
  893.        Success: IUT sends correct command format.
  894.  
  895.        Failure: REF does not receive correct command format
  896.          within 30 seconds.
  897.  
  898.  
  899. Test 5
  900.  
  901.        - Can the IUT issue a HELP command?
  902.  
  903.        - Action: IUT is instructed to issue a HELP command.
  904.  
  905.        - Verification: REF receives char string within 30 second
  906.            time interval and checks it for MIL-STD specification.
  907.  
  908.        Success: IUT sends correct command format.
  909.  
  910.        Failure: REF does not receive correct command format
  911.          within 30 seconds.
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.                             FTP -16-
  926. Scenario File u_conn3:
  927.          - This scenario tests the ability of the User FTP
  928.            process to communicate with two servers at once.
  929.          - It also tests its ability issue the PASV and PORT
  930.            commands.
  931.  
  932. Test 31  Issue PASV command
  933. Test 32  Issue PORT command
  934.  
  935.  
  936. -----------------------------------------------------------------------------
  937.  
  938.  
  939. Test 31
  940.  
  941.        - Can the IUT issue a PASV command?
  942.  
  943.        - Action: IUT is instructed to issue a PASV command.
  944.  
  945.        - Verification: REF receives char string within 30 second
  946.            time interval and checks it for MIL-STD specification.
  947.  
  948.        Success: IUT sends correct command format.
  949.  
  950.        Failure: REF does not receive correct command format
  951.          within 30 seconds.
  952.  
  953.  
  954. Test 32
  955.  
  956.        - Can the IUT issue a PORT command?
  957.  
  958.        - Action: IUT is instructed to issue a PORT command.
  959.  
  960.        - Verification: REF receives char string within 30 second
  961.            time interval and checks it for MIL-STD specification.
  962.  
  963.        Success: IUT sends correct command format.
  964.  
  965.        Failure: REF does not receive correct command format
  966.          within 30 seconds.
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.                             FTP -17-
  983. The following scenario files test the ability of the Server FTP
  984. Implementation Under Test to respond to commands issued by the
  985. Reference User Implementation in accordance to the MIL-STD
  986. specification.
  987.  
  988. Scenario File s_logquit:
  989.          - Establish FTP Command Connection.
  990.          - Login Sequence.
  991.          - Close Command Connection.
  992.  
  993. Test 1   Open connection to IUT
  994. Test 60  Test response to USER command
  995. Test 61  Test response to PASS command
  996. Test 62  Test response to ACCT command
  997. Test 64  Test response to QUIT command
  998.  
  999. --------------------------------------------------
  1000.  
  1001. Test 1
  1002.  
  1003.        - Can the implementation under test (IUT) establish a
  1004.            connection with the reference implementation (REF)?
  1005.  
  1006.        - Action: REF tries opening a connection to IUT.
  1007.  
  1008.        - Verification: REF receives a 220 response within 30
  1009.            seconds indicating that command channel is open.
  1010.  
  1011.        Success: REF receives response code of 220.  Connection
  1012.        is established.
  1013.  
  1014.        Failure: REF times-out waiting for correct response code
  1015.          from IUT.  Connection cannot be established, scenario is
  1016.          aborted.
  1017.  
  1018.  
  1019. Test 60
  1020.  
  1021.        - Does the IUT correctly implement the USER command?
  1022.  
  1023.        - Action: REF sends the IUT the USER command and waits 30
  1024.            seconds for IUT to respond.
  1025.  
  1026.        - Verification: REF checks for valid codes of 230, 331,
  1027.            or 332.
  1028.  
  1029.        Success: REF receives one of the valid response codes.
  1030.  
  1031.        Failure: REF times-out waiting for IUT to respond with a
  1032.          valid response code.  Scenario is aborted and all
  1033.          connections are closed.
  1034.  
  1035.  
  1036. Test 61
  1037.  
  1038.        - Does the IUT correctly implement the PASS command?
  1039.  
  1040.                             FTP -18-
  1041.        - Action: REF sends the IUT the PASS command and waits 30
  1042.            seconds for IUT to respond.
  1043.  
  1044.        - Verification: REF checks for valid codes of 230 or 332.
  1045.  
  1046.        If the response code 202 or 503 is received, the command
  1047.        is not implemented and the test is not evaluated for
  1048.        success or failure.
  1049.  
  1050.        Success: REF receives one of the valid response codes.
  1051.  
  1052.        Failure: REF times-out waiting for IUT to respond with a
  1053.          valid response code.
  1054.  
  1055.  
  1056. Test 62
  1057.  
  1058.        - Does the IUT correctly implement the ACCT command?
  1059.  
  1060.        - Action: REF sends the IUT the ACCT command and waits 30
  1061.            seconds for IUT to respond.
  1062.  
  1063.        - Verification: REF checks for valid code of 230.
  1064.  
  1065.        If the response code 202 is received, the command is not
  1066.        implemented and the test is not evaluated for success or
  1067.        failure.
  1068.  
  1069.        Success: REF receives a valid response codes.
  1070.  
  1071.        Failure: REF times-out waiting for IUT to respond with a
  1072.          valid response code.
  1073.  
  1074.  
  1075. Test 64
  1076.  
  1077.        - Does the IUT correctly implement the QUIT command?
  1078.  
  1079.        - Action: REF sends the IUT the ACCT command and waits 30
  1080.            seconds for IUT to respond.
  1081.  
  1082.        - Verification: REF checks for valid code of 221.
  1083.  
  1084.        Success: REF receives a valid response code.
  1085.  
  1086.        Failure: REF times-out waiting for IUT to respond with a
  1087.          valid response code.  All connections are closed and test
  1088.          ends.
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.                             FTP -19-
  1098. Scenario File s_basic:
  1099.          - Test transfer commands.
  1100.          - Test for correct file transfer.
  1101.          - Issue and test all possible combinations of the file
  1102.              transfer parameters.
  1103.  
  1104. Test 66  REF test responses to RETR and STOR commands and the
  1105.          IUT's capability to transfer a file.
  1106.  
  1107. Tests 50-55  REF tests the response codes for all possible
  1108.              combinations of transfer parameters TYPE, MODE, and
  1109.              STRU and the IUT's capability to transfer a file for
  1110.              each combination.
  1111.  
  1112. Test 79  Test response to NOOP command.
  1113.  
  1114. ---------------------------------------------------------------------
  1115.  
  1116. Test 66
  1117.  
  1118.        - Can the IUT correctly respond to the RETR and STOR
  1119.            commands?
  1120.  
  1121.        - Does the IUT correctly implement the RETR and STOR
  1122.            commands?
  1123.  
  1124.        - Action: REF sends the IUT the STOR command so that a
  1125.            file is transferred from the REF to the IUT and waits 30
  1126.            seconds for IUT to respond.  The following are valid
  1127.            responses: 150 and 226, 125 and 226, 150 and 250, or 125
  1128.            and 250.  If the REF does not receive a valid response
  1129.            from the IUT, the entire scenario is aborted.  However, if
  1130.            the REF receives a valid response, it will then send the
  1131.            RETR command to transfer the test file back from the IUT.
  1132.            If the REF receives a valid response from the IUT to the
  1133.            RETR command, the file transfer has completed.  To ensure
  1134.            the IUT performed the file transfer function correctly,
  1135.            the test file received from the IUT is compared to the
  1136.            original test file on the REF.
  1137.  
  1138.        - Verification: REF checks for valid response codes for
  1139.            RETR and STOR commands.  File comparison ensures that the
  1140.            file data was not destroyed or altered while being
  1141.            transferred by or stored on the IUT.
  1142.  
  1143.        Success: REF receives correct response codes for RETR and
  1144.            STOR commands.  Successful file comparison to ensure
  1145.            correct file transfer.
  1146.  
  1147.        Failure: Timeout occurs before receiving correct response
  1148.            codes for either RETR or STOR commands or unsuccessful
  1149.            comparison of files.
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.                             FTP -20-
  1156. Tests 50-55
  1157.  
  1158.        - Can the IUT respond to all possible values of transfer
  1159.            parameter commands.
  1160.  
  1161.        - Can the IUT transfer a file for each different
  1162.            combination of the transfer parameters.
  1163.  
  1164.        - Action: These tests cover each possible combination of
  1165.            the transfer parameters.  For each combination there is a
  1166.            test for a valid response code of 200.  A response code of
  1167.            502 or 504 indicates the specified value for that transfer
  1168.            parameter command is not implemented and does neither
  1169.            succeed or fail.  For each test that meets the valid
  1170.            response, a file is transferred from the IUT to REF and
  1171.            compared to the original file on the REF.
  1172.  
  1173.        - Verification: REF checks for valid response code and
  1174.            compares file to ensure correct data and file
  1175.            representation.
  1176.  
  1177.        Success: For each test, a valid response is received by
  1178.          REF and file comparison is successful.
  1179.  
  1180.        Failure: For each test, if a timeout occurs before
  1181.          receiving a valid response or an unsuccessful file
  1182.          comparison.
  1183.  
  1184.  
  1185. Test 79
  1186.  
  1187.        - Can the IUT correctly respond to the NOOP command?
  1188.  
  1189.        - Action: REF sends the IUT the NOOP command.
  1190.  
  1191.        - Verification: REF checks for a valid response code of
  1192.            200 within 30 seconds.
  1193.  
  1194.        Success: REF receives valid response code.
  1195.  
  1196.        Failure: REF times-out before receiving a valid code.
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.                             FTP -21-
  1213. Scenario File s_fileserv:  Test responses and functional ability
  1214.            of the following file-related commands:
  1215.            - Append.
  1216.            - Allocate.
  1217.            - Rename From.
  1218.            - Rename To.
  1219.            - List file information.
  1220.            - List file names.
  1221.            - Change working directory.
  1222.            - Delete a file.
  1223.  
  1224. Test 67  Test response to APPE command
  1225. Test 68  Test response to ALLO command
  1226. Test 69  Test response to RNFR command
  1227. Test 70  Test response to RNTO command
  1228. Test 74  Test response to LIST command
  1229. Test 75  Test response to NLST command
  1230. Test 73  Test response to CWD command
  1231. Test 72  Test response to DELE command
  1232.  
  1233. --------------------------------------------------------
  1234.  
  1235. Test 67
  1236.  
  1237.        - Does the IUT correctly respond to and implement the APPE command?
  1238.  
  1239.        - Action: REF sends the IUT the APPE command and waits 60
  1240.            seconds for the IUT to respond.  The first part of the test
  1241.            is for appending onto an already existing file.  The second
  1242.            part of the test is for appending onto a non-existing file,
  1243.            thereby creating a new file.  The second part of the test
  1244.            checks that a new file is created.
  1245.  
  1246.        - Verification: REF checks for a valid code of 150 and
  1247.            226, 125 and 226, 150 and 250, 125 and 250.  A response
  1248.            code of 502 indicates the command is not implemented and
  1249.            the test is not evaluated for success or failure.
  1250.  
  1251.        Success: REF receives valid response codes and
  1252.          successfully creates new file for the second part of the
  1253.          test.
  1254.  
  1255.        Failure: REF times-out before receiving valid response or
  1256.          does not create file for second part of test.
  1257.  
  1258.  
  1259. Test 68
  1260.  
  1261.        - Does the IUT correctly respond to and implement the ALLO command?
  1262.  
  1263.        - Action: REF sends the IUT the ALLO command and waits 60
  1264.            seconds for the IUT to respond.  The first part of the test
  1265.            is for allocating an additional number of bytes of storage
  1266.            for a file to be stored on the recipient's host.  The
  1267.            second part of the test is for allocating enough records
  1268.            for a file that will be stored as records.
  1269.  
  1270.                             FTP -22-
  1271.        - Verification: REF checks for a valid code of 200.  A
  1272.            response code of 202 or 504 indicates the command is not
  1273.            implemented and the test is not evaluated for success or
  1274.            failure.
  1275.  
  1276.        Success: REF receives a valid response code.
  1277.  
  1278.        Failure: REF times-out before receiving a valid response.
  1279.  
  1280.  
  1281. Test 69
  1282.  
  1283.        - Does the IUT correctly respond to and implement the RNFR
  1284.            command?
  1285.  
  1286.        - Action: REF sends the IUT the RNFR command and waits 30
  1287.            seconds for the IUT to respond.
  1288.  
  1289.        - Verification: REF checks for a valid code of 350.  A
  1290.            response code of 502 indicates the command is not
  1291.            implemented and the test is not evaluated for success or
  1292.            failure.
  1293.  
  1294.        Success: REF receives a valid response code.
  1295.  
  1296.        Failure: REF times-out before receiving a valid response.
  1297.  
  1298.  
  1299. Test 70
  1300.  
  1301.        - Does the IUT correctly respond to and implement the RNTO command?
  1302.  
  1303.        - Action: REF sends the IUT the RNTO command and waits 30
  1304.            seconds for the IUT to respond.
  1305.  
  1306.        - Verification: REF checks for a valid code of 250 or 200.
  1307.            A response code of 502 indicates the command is not
  1308.            implemented and the test is not evaluated for success or
  1309.            failure.
  1310.  
  1311.        Success: REF receives a valid response code.
  1312.  
  1313.        Failure: REF times-out before receiving a valid response.
  1314.  
  1315.  
  1316. Test 74
  1317.  
  1318.        - Does the IUT correctly respond to and implement the LIST command?
  1319.  
  1320.        - Action: REF sends the IUT the LIST command and waits 60
  1321.            seconds for the IUT to respond.
  1322.  
  1323.        - Verification: REF checks for a valid code of 125 and
  1324.            226, 125 and 250, 150 and 226, or 150 and 250.  A response
  1325.            code of 502 indicates the command is not implemented and
  1326.            the test is not evaluated for success or failure.
  1327.  
  1328.                             FTP -23-
  1329.        Success: REF receives a valid response code.
  1330.  
  1331.        Failure: REF times-out before receiving a valid response.
  1332.  
  1333.  
  1334. Test 75
  1335.  
  1336.        - Does the IUT correctly respond to and implement the NLST command?
  1337.  
  1338.        - Action: REF sends the IUT the NLST command and waits 60
  1339.            seconds for the IUT to respond.
  1340.  
  1341.        - Verification: REF checks for a valid code of 125 and
  1342.            226, 125 and 250, 150 and 226, or 150 and 250.  A response
  1343.            code of 502 indicates the command is not implemented and
  1344.            the test is not evaluated for success or failure.
  1345.  
  1346.        Success: REF receives a valid response code.
  1347.  
  1348.        Failure: REF times-out before receiving a valid response.
  1349.  
  1350.  
  1351. Test 73
  1352.  
  1353.        - Does the IUT correctly respond to and implement the CWD command?
  1354.  
  1355.        - Action: REF sends the IUT the CWD command and waits 30
  1356.            seconds for the IUT to respond.
  1357.  
  1358.        - Verification: REF checks for a valid code of 250 or 200.
  1359.            A response code of 502 indicates the command is not
  1360.            implemented and the test is not evaluated for success or
  1361.            failure.
  1362.  
  1363.        Success: REF receives a valid response code.
  1364.  
  1365.        Failure: REF times-out before receiving a valid response.
  1366.  
  1367.  
  1368. Test 72
  1369.  
  1370.        - Does the IUT correctly respond to and implement the DELE command?
  1371.  
  1372.        - Action: REF sends the IUT the DELE command and waits 30
  1373.            seconds for the IUT to respond.
  1374.  
  1375.        -Verification: REF checks for a valid code of 250 or 200.
  1376.            A response code of 502 indicates the command is not
  1377.            implemented and the test is not evaluated for success or
  1378.            failure.  If a valid response is received, the REF tries to
  1379.            retrieve the same file to ensure it was deleted.
  1380.  
  1381.        Success: REF receives a valid response code.
  1382.  
  1383.        Failure: REF times-out before receiving a valid response.
  1384.  
  1385.                             FTP -24-
  1386. Scenario File s_connserv: Test IUT's response for the following
  1387.            functions:
  1388.            - Reinitialize Connection.
  1389.            - Abort Connection.
  1390.            - Status of connection.
  1391.            - Site Command.
  1392.            - Remote Help information.
  1393.  
  1394. Test 63  Test response to REIN Command
  1395. Test 71  Test response to ABOR Command
  1396. Test 77  Test response to STAT Command
  1397. Test 76  Test response to SITE Command
  1398. Test 78  Test response to HELP Command
  1399.  
  1400. -----------------------------------------------------------------------------
  1401.  
  1402.  
  1403. Test 63
  1404.  
  1405.        - Does the IUT correctly respond to the REIN command?
  1406.  
  1407.        - Action: REF sends the REIN command and waits 30 seconds
  1408.            for the IUT to respond.
  1409.  
  1410.        - Verification: REF checks for a valid response code of
  1411.            120 or 220.  A response code of 502 indicates the command
  1412.            is not implemented and the test is not evaluated for
  1413.            success or failure.
  1414.  
  1415.        Success: REF receives valid response code.
  1416.  
  1417.        Failure: REF times-out before receiving valid response.
  1418.  
  1419.  
  1420. Test 71
  1421.  
  1422.        - Does the IUT correctly respond to the ABOR command?
  1423.  
  1424.        - Action: REF sends the ABOR command and waits 30 seconds
  1425.            for the IUT to respond.
  1426.  
  1427.        - Verification: REF checks for a valid response code of
  1428.            225 or 226.  A response code of 502 indicates the command
  1429.            is not implemented and the test is not evaluated for
  1430.            success or failure.
  1431.  
  1432.        Success: REF receives valid response code.
  1433.  
  1434.        Failure: REF times-out before receiving valid response.
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.                             FTP -25-
  1444. Test 77
  1445.  
  1446.        - Does the IUT correctly respond to the STAT command?
  1447.  
  1448.        - Action: REF sends the STAT command and waits 30 seconds
  1449.            for the IUT to respond.
  1450.  
  1451.        - Verification: REF checks for a valid response code of
  1452.            211, 212, or 213 (depending on the parameter sent with the
  1453.            STAT command).  A response code of 502 indicates the
  1454.            command is not implemented and the test is not evaluated
  1455.            for success or failure.
  1456.  
  1457.        Success: REF receives valid response code.
  1458.  
  1459.        Failure: REF times-out before receiving valid response.
  1460.  
  1461.  
  1462. Test 76
  1463.  
  1464.        - Does the IUT correctly respond to the SITE command?
  1465.  
  1466.        - Action: REF sends the SITE command and waits 30 seconds
  1467.            for the IUT to respond.
  1468.  
  1469.        - Verification: REF checks for a valid response code of
  1470.            200.  A response code of 202 or 502 indicates the command
  1471.            is not implemented and the test is not evaluated for
  1472.            success or failure.
  1473.  
  1474.        Success: REF receives valid response code.
  1475.  
  1476.        Failure: REF times-out before receiving valid response.
  1477.  
  1478.  
  1479. Test 78
  1480.  
  1481.        - Does the IUT correctly respond to the HELP command?
  1482.  
  1483.        - Action: REF sends the HELP command and waits 30 seconds
  1484.            for the IUT to respond.
  1485.  
  1486.        - Verification: REF checks for a valid response code of
  1487.            211 or 214.  A response code of 502 indicates the command
  1488.            is not implemented and the test is not evaluated for
  1489.            success or failure.
  1490.  
  1491.        Success: REF receives valid response code.
  1492.  
  1493.        Failure: REF times-out before receiving valid response.
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.                             FTP -26-
  1501. Scenario File s_conn3:
  1502.            - This scenario exercises the ability of the IUT
  1503.              server to communicate and transfer files in a 3-party
  1504.              transfer.
  1505.            - The third party, other than the REF User and IUT
  1506.              Server, is the REF Server.
  1507.  
  1508. Test 65  Conduct file transfer activity between User and both
  1509.          Servers by using PASV and PORT commands.
  1510.  
  1511. ---------------------------------------------------------------------
  1512.  
  1513. Test 65
  1514.  
  1515.        - Can the IUT respond to commands necessary for a 3-party
  1516.            file transfer?
  1517.  
  1518.        - Does the IUT function properly as a server within a 3
  1519.            party file transfer?
  1520.  
  1521.        - Action: A command connection is established between REF
  1522.            User and REF Server.  Then a connection is established
  1523.            between REF User and IUT Server.  If either of these
  1524.            connections cannot be established, the scenario is aborted
  1525.            (REF User has the ability to switch between the two
  1526.            connections).  The test begins by sending the PASV command
  1527.            to the REF Server.  It should respond with the response
  1528.            code 227 to indicate that it is listening for a data
  1529.            connection to be established to it, along with the data
  1530.            port number to which the other server should connect.
  1531.            Next, the REF User issues the RETR command to the REF
  1532.            Server so it knows its function when the data connection is
  1533.            established.  It should respond with a code of 150.  After
  1534.            the REF User receives this response, it switches to its
  1535.            connection with the IUT Server and issues the PORT command
  1536.            specifying the data port number received on the PASV
  1537.            response.  The IUT should respond with the valid response
  1538.            code of 200.  When the REF receives this code, it issues
  1539.            the IUT the STOR command so that a test file may be
  1540.            transferred from the REF site to the IUT site.  This test
  1541.            completes one file transfer, but in order to verify that
  1542.            data was not destroyed or altered by the IUT server, the
  1543.            test file is transferred back to the REF and compared to
  1544.            the initial file.
  1545.  
  1546.        - Verification: REF checks for valid response codes from
  1547.            the IUT for the PORT command and the transfer commands and
  1548.            compares the transferred file with the original file to
  1549.            ensure data and file representation.
  1550.  
  1551.        Success: REF receives correct response codes and
  1552.            successful comparison of files.
  1553.  
  1554.        Failure: REF does not receive correct response codes or
  1555.            unsuccessful comparison of files.
  1556.  
  1557.  
  1558.                             FTP -27-
  1559. The following scenarios test the ability of the IUT Server to
  1560. correctly respond to erroneous situations.  Each test will set up
  1561. an error for a given command and check that the IUT responds
  1562. appropriately.
  1563.  
  1564. Scenario File n_notlog:
  1565.          - Test issuing a command before the user is logged in.
  1566.          - Test USER command given an unknown username.
  1567.          - Test login sequence giving a bad sequence of
  1568.            commands.
  1569.          - Test PASS command given a known user but an
  1570.            incorrect password.
  1571.  
  1572. Test 201  Test negative response for user not logged in.
  1573. Test 117  Test negative response for unknown user, bad login
  1574.             sequence, and an incorrect password.
  1575.  
  1576. -------------------------------------------------------------------
  1577.  
  1578.  
  1579. Test 201
  1580.  
  1581.        - Can the IUT respond correctly to the STOR command before
  1582.            the user has logged in?
  1583.  
  1584.        - Action: REF User establishes a connection with the IUT
  1585.            but does not log in.  The REF User issues a STOR command
  1586.            and waits 30 seconds for the IUT to respond.
  1587.  
  1588.        - Verification: REF checks for valid response of 530 from
  1589.            the IUT.
  1590.  
  1591.        Success: REF receives valid response code.
  1592.  
  1593.        Failure: REF times-out before receiving.
  1594.  
  1595.  
  1596. Test 117a
  1597.  
  1598.        - Can the IUT respond correctly to an unknown username?
  1599.  
  1600.        - Action: REF issues a USER command to the IUT with an
  1601.            invalid username and waits 30 seconds for the IUT to
  1602.            respond.
  1603.  
  1604.        - Verification: REF checks for valid response of 530 from
  1605.            the IUT.
  1606.  
  1607.        Success: REF receives valid response code.
  1608.  
  1609.        Failure: REF times-out before receiving.
  1610.  
  1611.  
  1612. Test 117b
  1613.  
  1614.        - Can the IUT respond correctly to a bad sequence of
  1615.            commands giving the ACCT command?
  1616.  
  1617.                             FTP -28-
  1618.        - Action: REF issues an ACCT command out of sequence to
  1619.            the IUT and waits 30 seconds for the IUT to respond.
  1620.  
  1621.        - Verification: REF checks for valid response of 503 from
  1622.            the IUT.  A response code of 502 indicates the ACCT
  1623.            command is not implemented and the test is not evaluated
  1624.            for success or failure.
  1625.  
  1626.        Success: REF receives valid response code.
  1627.  
  1628.        Failure: REF times-out before receiving.
  1629.  
  1630.  
  1631. Test 117c
  1632.  
  1633.        - Can the IUT respond correctly to a bad sequence of
  1634.            commands giving the PASS command?
  1635.  
  1636.        - Action: REF issues an PASS command out of sequence to
  1637.            the IUT and waits 30 seconds for the IUT to respond.
  1638.  
  1639.        - Verification: REF checks for valid response of 503 from
  1640.            the IUT.
  1641.  
  1642.        Success: REF receives valid response code.
  1643.  
  1644.        Failure: REF times-out before receiving.
  1645.  
  1646.  
  1647. Test 117d
  1648.  
  1649.        - Can the IUT respond correctly to a correct username
  1650.            ising the USER command, but an invalid password using the
  1651.            PASS command?
  1652.  
  1653.        - Action: REF issues a USER command with a valid username
  1654.            and if the IUT responds correctly, REF then issues a PASS
  1655.            command with an invalid password.  REF waits 30 seconds
  1656.            for the IUT to respond.
  1657.  
  1658.        - Verification: REF checks for valid response of 530 from
  1659.            the IUT indicating user has not logged in correctly.  User
  1660.            must then re-initiate login sequence.
  1661.  
  1662.        Success: REF receives valid response code.
  1663.  
  1664.        Failure: REF times-out before receiving.
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.                             FTP -29-
  1677.  
  1678. Scenario File n_generr:
  1679.          - Test a command for general syntax error.
  1680.  
  1681. Test 200  Test for correct response to an incorrectly spelled NOOP Command
  1682.  
  1683. ----------------------------------------------------------------------------
  1684.  
  1685. Test 200
  1686.  
  1687.        - Can the IUT respond correctly to a syntax error on
  1688.            command line?
  1689.  
  1690.        - Action: REF issues a misspelled NOOP command and waits
  1691.            30 seconds for IUT to respond.
  1692.  
  1693.        - Verification: REF checks for a valid response of 500
  1694.            indicating a syntax error.
  1695.  
  1696.        Success: REF receives valid response from IUT.
  1697.  
  1698.        Failure: REF times-out waiting for response from IUT.
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.                             FTP -30-
  1735. Scenario File n_basic:
  1736.          Test IUT to respond correctly to errors when issuing
  1737.            transfer commands and transfer parameter commands.
  1738.  
  1739. Test 120  Test IUT responds correctly to RETR and STOR commands
  1740.             which cannot open data connections.
  1741.           Test responses to transfer commands for non-existent file.
  1742.  
  1743. Test 114  Test IUT response to a STRU command with an
  1744.             unimplemented value.
  1745.  
  1746. Test 112  Test IUT response to a TYPE command with an
  1747.             unimplemented value.
  1748.  
  1749. Test 113  Test IUT response to a MODE command with an
  1750.             unimplemented value.
  1751.  
  1752. -------------------------------------------------------------------
  1753.  
  1754. Test 120a
  1755.  
  1756.        - Does the IUT respond correctly to a STOR command which
  1757.            cannot open a data connection?
  1758.  
  1759.        - Action: REF issues a STOR command for which a data
  1760.            connection cannot be opened and waits 10 seconds for the
  1761.            IUT to respond.
  1762.  
  1763.        - Verification: REF checks that a valid response of 425
  1764.            is received indicating that a connection cannot be opened.
  1765.  
  1766.          Success: REF receives correct response code.
  1767.  
  1768.          Failure: REF times-out before receiving correct response code.
  1769.  
  1770.  
  1771. Test 120b
  1772.  
  1773.        - Does the IUT respond correctly to a RETR command which
  1774.            cannot open a data connection?
  1775.  
  1776.        - Action: REF issues a RETR command for which a data
  1777.            connection cannot be opened and waits 10 seconds for the
  1778.            IUT to respond.
  1779.  
  1780.        - Verification: REF checks that a valid response of 425
  1781.            is received indicating that a connection cannot be opened.
  1782.  
  1783.        Success: REF receives correct response code.
  1784.  
  1785.        Failure: REF times-out before receiving correct response code.
  1786.  
  1787.  
  1788. Test 120c
  1789.  
  1790.        - Does IUT respond correctly when asked to retrieve a non
  1791.            existent file.
  1792.  
  1793.                             FTP -31-
  1794.        - Action: REF issues a RETR command giving a non-existent
  1795.            filename and waits 10 seconds for a valid response from the IUT.
  1796.  
  1797.        - Verification: REF checks that a valid response of 550 is received
  1798.            from IUT indicating that the file specified does not exist.
  1799.  
  1800.        Success: REF receives a valid response code.
  1801.  
  1802.        Failure: REF times-out before receiving correct response code.
  1803.  
  1804. Test 114
  1805.  
  1806.        - Can the IUT respond correctly to the STRU command given
  1807.            an unimplemented value?
  1808.  
  1809.        - Action: REF issues STRU command giving an unimplemented
  1810.            value and waits 10 seconds for a valid response from IUT.
  1811.  
  1812.        - Verification: REF checks for a valid response of 502 or
  1813.            504 indicating that command is not implemented for that
  1814.            parameter value.
  1815.  
  1816.        Success: REF receives correct response code.
  1817.  
  1818.        Failure: REF times-out before receiving valid response code.
  1819.  
  1820. Test 112
  1821.  
  1822.        - Can the IUT respond correctly to the TYPE command given
  1823.            an unimplemented value?
  1824.  
  1825.        - Action: REF issues TYPE command giving an unimplemented
  1826.            value and waits 10 seconds for a valid response from IUT.
  1827.  
  1828.        - Verification: REF checks for a valid response of 502 or
  1829.            504 indicating that command is not implemented for that
  1830.            parameter value.
  1831.  
  1832.        Success: REF receives correct response code.
  1833.  
  1834.        Failure: REF times-out before receiving valid response code.
  1835.  
  1836. Test 113
  1837.  
  1838.        - Can the IUT respond correctly to the MODE command given
  1839.            an unimplemented value?
  1840.  
  1841.        - Action: REF issues MODE command giving an unimplemented
  1842.            value and waits 10 seconds for a valid response from IUT.
  1843.  
  1844.        - Verification: REF checks for a valid response of 502 or
  1845.            504 indicating that command is not implemented for that
  1846.            parameter value.
  1847.  
  1848.        Success: REF receives correct response code.
  1849.  
  1850.        Failure: REF times-out before receiving valid response code.
  1851.  
  1852.                             FTP -32-
  1853. Scenario File n_fileserv:  Test error responses for the following
  1854.          functions:
  1855.            - Append.
  1856.            - Rename From.
  1857.            - Rename To.
  1858.            - List File Information.
  1859.            - List Files by Name.
  1860.            - Change Working Directory.
  1861.            - Delete File.
  1862.  
  1863. Test 118  Test response to APPE command which cannot open a data
  1864.           connection.
  1865.  
  1866. Test 107  Test the response to RNTO and RNFR commands.  One part
  1867.           of the test tries to rename a non-existent filename.
  1868.           The other part of the test issues the RNTO command out
  1869.           of sequence.
  1870.  
  1871. Test 110  Test response to LIST command which cannot open a data connection.
  1872.  
  1873. Test 111  Test response to NLST command which cannot open a data connection.
  1874.  
  1875. Test 106  Test response to CWD command for a non-existent directory.
  1876.  
  1877. Test 102  Test response to DELE command for a non-existent file.
  1878.  
  1879. --------------------------------------------------------------------
  1880.  
  1881. Test 118
  1882.  
  1883.        - Does the IUT respond correctly to an APPE command which
  1884.            cannot open a data connection?
  1885.  
  1886.        - Action: REF issues an APPE command for which a data
  1887.            connection may not be opened and waits 10 seconds for the
  1888.            IUT to respond.
  1889.  
  1890.        - Verification: REF checks for a valid response code of
  1891.            425 indicating it cannot open a data connection.
  1892.  
  1893.        Success: REF receives valid response code.
  1894.  
  1895.        Failure: REF times-out before receiving valid response code.
  1896.  
  1897.  
  1898. Test 107a
  1899.  
  1900.        - Can the IUT respond correctly to the RNFR command which
  1901.            tries to rename a non-existent file?
  1902.  
  1903.        - Action: REF issues a RNFR command with a non-existent
  1904.            filename and waits for a valid response from the IUT.
  1905.  
  1906.        - Verification: REF checks for a valid response code of
  1907.            450 or 550 indicating that the file is unavailable.
  1908.  
  1909.  
  1910.                             FTP -33-
  1911.        Success: REF receives valid response code.
  1912.  
  1913.        Failure: REF times-out waiting for a valid response code.
  1914.  
  1915.  
  1916. Test 107b
  1917.  
  1918.        - Can the IUT respond correctly to the RNTO command which
  1919.            is out of sequence.
  1920.  
  1921.        - Action: REF issues a RNTO command which is out of
  1922.            sequence and waits for a valid response from the IUT.
  1923.  
  1924.        - Verification: REF checks for a valid response code of
  1925.            503 indicating a bad sequence of commands.
  1926.  
  1927.        Success: REF receives valid response code.
  1928.  
  1929.        Failure: REF times-out waiting for a valid response code.
  1930.  
  1931.  
  1932. Test 110
  1933.  
  1934.        - Does the IUT respond correctly to an LIST command which
  1935.            cannot open a data connection?
  1936.  
  1937.        - Action: REF issues an LIST command for which a data
  1938.            connection may not be opened and waits 10 seconds for the
  1939.            IUT to respond.
  1940.  
  1941.        - Verification: REF checks for a valid response code of
  1942.            425 or 501 indicating it cannot open a data connection.
  1943.  
  1944.        Success: REF receives valid response code.
  1945.  
  1946.        Failure: REF times-out before receiving valid response code.
  1947.  
  1948.  
  1949. Test 111
  1950.  
  1951.        - Does the IUT respond correctly to an NLST command which
  1952.            cannot open a data connection?
  1953.  
  1954.        - Action: REF issues an LIST command for which a data
  1955.            connection may not be opened and waits 10 seconds for the
  1956.            IUT to respond.
  1957.  
  1958.        - Verification: REF checks for a valid response code of
  1959.            500, 425, or 501 indicating it cannot open a data
  1960.            connection.
  1961.  
  1962.        Success: REF receives valid response code.
  1963.  
  1964.        Failure: REF times-out before receiving valid response code.
  1965.  
  1966.  
  1967.  
  1968.                             FTP -34-
  1969. Test 106
  1970.  
  1971.        - Can the IUT respond correctly to the CWD command which
  1972.            tries to change to a non-existent directory?
  1973.  
  1974.        - Action: REF issues a CWD command with a non-existent
  1975.            directory and waits for a valid response from the IUT.
  1976.  
  1977.        - Verification: REF checks for a valid response code of
  1978.            550 indicating that the file is unavailable.
  1979.  
  1980.        Success: REF receives valid response code.
  1981.  
  1982.        Failure: REF times-out waiting for a valid response code.
  1983.  
  1984.  
  1985. Test 102
  1986.  
  1987.        - Can the IUT respond correctly to the DELE command which
  1988.            tries to delete a non-existent file?
  1989.  
  1990.        - Action: REF issues a DELE command with a non-existent
  1991.            filename and waits for a valid response from the IUT.
  1992.  
  1993.        - Verification: REF checks for a valid response code of
  1994.            550 indicating that the file is unavailable.
  1995.  
  1996.        Success: REF receives valid response code.
  1997.  
  1998.        Failure: REF times-out waiting for a valid response code.
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.                             FTP -35-
  2028. Scenario File n_connserv: Test IUT s_response
  2029.          functions:
  2030.            - Reinitialize connection.
  2031.            - Abort connection.
  2032.            - Status of connection.
  2033.            - Site command.
  2034.            - Remote help information.
  2035.  
  2036. Test 108  Test negative response to REIN command.
  2037. Test 105  Test negative response to ABOR command.
  2038. Test 104  Test negative response to STAT command.
  2039. Test 101  Test negative response to SITE command.
  2040. Test 103  Test negative response to HELP command.
  2041.  
  2042. -------------------------------------------------------------
  2043.  
  2044. Test 108
  2045.  
  2046.        - Does the IUT respond correctly if the REIN command is
  2047.            not implemented?
  2048.  
  2049.        - Action: REF issues REIN command and waits 30 seconds
  2050.            for a valid response.
  2051.  
  2052.        - Verification: REF checks for a valid response of 502
  2053.            indicating command is not implemented.
  2054.  
  2055.        Success: REF receives valid response code.
  2056.  
  2057.        Failure: REF times-out waiting for a valid response code.
  2058.  
  2059.  
  2060. Test 105
  2061.  
  2062.        - Does the IUT respond correctly if the ABOR command is
  2063.            not implemented?
  2064.  
  2065.        - Action: REF issues ABOR command and waits 30 seconds
  2066.            for a valid response.
  2067.  
  2068.        - Verification: REF checks for a valid response of 502
  2069.            indicating command is not implemented.
  2070.  
  2071.        Success: REF receives valid response code.
  2072.  
  2073.        Failure: REF times-out waiting for a valid response code.
  2074.  
  2075.  
  2076. Test 104
  2077.  
  2078.        - Does the IUT respond correctly if the STAT command is
  2079.            not implemented?
  2080.  
  2081.        - Action: REF issues STAT command and waits 30 seconds
  2082.            for a valid response.
  2083.  
  2084.  
  2085.                             FTP -36-
  2086.        - Verification: REF checks for a valid response of 502
  2087.            indicating command is not implemented.
  2088.  
  2089.        Success: REF receives valid response code.
  2090.  
  2091.        Failure: REF times-out waiting for a valid response code.
  2092.  
  2093.  
  2094. Test 101
  2095.  
  2096.        - Does the IUT respond correctly if the SITE command is
  2097.            not implemented?
  2098.  
  2099.        - Action: REF issues SITE command and waits 30 seconds
  2100.            for a valid response.
  2101.  
  2102.        - Verification: REF checks for a valid response of 202,
  2103.            502, or 504 indicating command is not implemented.
  2104.  
  2105.        Success: REF receives valid response code.
  2106.  
  2107.        Failure: REF times-out waiting for a valid response code.
  2108.  
  2109.  
  2110. Test 103
  2111.  
  2112.        - Does the IUT respond correctly if the HELP command
  2113.            giving an unknown parameter?
  2114.  
  2115.        - Action: REF issues HELP command with an unknown
  2116.            parameter and waits 30 seconds for a valid response.
  2117.  
  2118.        - Verification: REF checks for a valid response of 504
  2119.            indicating command is not implemented for that parameter.
  2120.  
  2121.        Success: REF receives valid response code.
  2122.  
  2123.        Failure: REF times-out waiting for a valid response code.
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.                             FTP -37
  2143. Scenario File n_conn3:
  2144.          - Test if IUT responds correctly to an unimplemented
  2145.            PASV command.
  2146.  
  2147. Test 116  Test that IUT's ability to respond correctly to an
  2148.             unimplemented PASV command.
  2149.  
  2150. -----------------------------------------------------------------------------
  2151.  
  2152. Test 116
  2153.  
  2154.        - Does the IUT respond correctly if the PASV command is
  2155.            not implemented?
  2156.  
  2157.        - Action: REF issues PASV command and waits 30 seconds
  2158.            for a valid response.
  2159.  
  2160.        - Verification: REF checks for a valid response of 502
  2161.            indicating command is not implemented.
  2162.  
  2163.        Success: REF receives valid response code.
  2164.  
  2165.        Failure: REF times-out waiting for a valid response code.
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.                             FTP -38-
  2201.